package cn.stylefeng.guns.modular.manager.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 路程计费
 * </p>
 *
 * @author yumker
 * @since 2021-01-07
 */
@TableName("flow_distance")
public class FlowDistance implements Serializable {

    private static final long serialVersionUID=1L;

      @TableId(value = "distance_id", type = IdType.AUTO)
    private Long distanceId;

    @TableField("store_city_id")
    private Long storeCityId;

    @TableField("distance_begin")
    private BigDecimal distanceBegin;

    @TableField("distance_end")
    private BigDecimal distanceEnd;

    @TableField("price")
    private BigDecimal price;

      @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

      @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;


    public Long getDistanceId() {
        return distanceId;
    }

    public void setDistanceId(Long distanceId) {
        this.distanceId = distanceId;
    }

    public Long getStoreCityId() {
        return storeCityId;
    }

    public void setStoreCityId(Long storeCityId) {
        this.storeCityId = storeCityId;
    }

    public BigDecimal getDistanceBegin() {
        return distanceBegin;
    }

    public void setDistanceBegin(BigDecimal distanceBegin) {
        this.distanceBegin = distanceBegin;
    }

    public BigDecimal getDistanceEnd() {
        return distanceEnd;
    }

    public void setDistanceEnd(BigDecimal distanceEnd) {
        this.distanceEnd = distanceEnd;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "FlowDistance{" +
        "distanceId=" + distanceId +
        ", storeCityId=" + storeCityId +
        ", distanceBegin=" + distanceBegin +
        ", distanceEnd=" + distanceEnd +
        ", price=" + price +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
